import { Spin } from 'antd';
import { createRoot } from 'react-dom/client';
export function showLoading(){
  var dom = document.createElement('div')
  dom.setAttribute('id', 'loading')
  document.body.appendChild(dom)
  createRoot(dom).render(<Spin tip="加载中" size="large"/>,)
}
export function hideLoading () {
  document.body.removeChild(document.getElementById('loading') as HTMLElement)
}
